<template>
  <div class="header">
    <span><slot name="left"></slot></span>
    <section><slot name="center"></slot>{{num}}</section>
    <span><slot name="right"></slot></span>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
export default {
  props:{
    num: [Number,String]
  },
  setup() {},
};
</script>
<style lang="scss" scoped>
.header {
  height: 50px;
  display: flex;
  align-items: center;
  background: #e9e9e9;
  span {
    width: 60px;
    text-align: center;
  }
  section {
    flex: 1;
    text-align: center;
  }
}
</style>